var flexbox = document.getElementById("iot-flexbox");
var div1 = document.getElementById("iot-div1");
var title1 = document.getElementById("iot-title");
flexbox.style.height = div1.offsetHeight+'px';
flexbox.style.height = title1.offsetHeight+'px';
div1.style.width = document.body.offsetWidth+'px';
function change1(){
    flexbox.style.height = div1.offsetHeight+'px';
    flexbox.style.height = title1.offsetHeight+'px';
    div1.style.width = document.body.offsetWidth+'px';
    title1.style.width = document.body.offsetWidth+'px';
}
addEventListener("resize",change1)